package com.zjitc.P2;

/**
 * Create by IntelliJ IDEA
 *
 * @author: MaoYongQi
 * @date-Time: 2018/3/14 10:24
 * @description:
 */
public class C implements M{
    private A a;

    public C(A a) {
        this.a = a;
    }

    @Override
    public void a() {
        System.out.println("init");
        a.a();
        System.out.println("destroy");
    }

    @Override
    public void b() {
        a.b();
    }

}
